<%@ page import="org.springside.core.Constants"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="workflow_portal1_label1" var="workflow_portal1_label1"/>
<fmt:message key="workflow_portal1_label2" var="workflow_portal1_label2"/>
<fmt:message key="workflow_portal1_label3" var="workflow_portal1_label3"/>
<fmt:message key="workflow_portal1_label4" var="workflow_portal1_label4"/>
<fmt:message key="workflowFile_list_label2" var="workflowFile_list_label2"/>

<ff:boxportlet header="${workflow_portal1_label1}">
		<form id="queryform" method="post" action="<c:url value="/modules/workflow/workflowFile.do?method=supervisor&ec_s_submitdate=desc"/>">
	       	<input type="hidden" id="search_workflowXXname_s_like" name="search_workflowXXname_s_like" size="12">
	     </form>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
	<tr>
		<td valign="top">	     
	       <table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
			    <td>
				<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="tbl_left_ico">
			          <c:forEach var="workflowFavor" items="${workflowFavors}"> 
			          <tr> 
			          <td valign="baseline"> 
			            <A class="link_portlet"
				      		href="#"
				      		onClick='mainJump("/modules/workflow/workflowFileinbox.do?method=create&flowId=${workflowFavor.id}&fromType=0&fromId=0","<%=Constants.USER_THEME_FRAME %>")' 
				      		title="${workflowFavor.name}">
				      		<c:choose> 
				      			<c:when test="${fn:length(workflowFavor.name) > param.y}"> 
			            			${fn:substring(workflowFavor.name, 0,  param.y)}... 
			            		</c:when> 
			            		<c:otherwise> ${workflowFavor.name} 
			            		</c:otherwise> 
			            	</c:choose>					
				      	</A>

				      	<c:if test="${workflowFavor.supervisors=='YES'}">&nbsp;
				      		<A title="${workflowFavor.name}" href="javascript:$('search_workflowXXname_s_like').value='${workflowFavor.name}';$('queryform').submit();">
				      			<img  title="${workflowFavor.name}_${workflowFile_list_label2}" src="../../themes/${sessionScope.loginUser.theme}/images/workflow_fileview.gif" border="0" align="bottom"/>
				      		</A>
				      	</c:if>
				      	
			          </td>
			        </tr>
			        </c:forEach> <c:if test="${fn:length(workflowFavors)<1}"> 
			        <tr> 
			          <td >&nbsp;  
			            </td>
			        </tr>
			        </c:if> <c:if test="${fn:length(workflowFavors)<2}"> 
			        <tr> 
			          <td >&nbsp;  
			            </td>
			        </tr>
			        </c:if> <c:if test="${fn:length(workflowFavors)<3}"> 
			        <tr> 
			          <td >&nbsp;  
			            </td>
			        </tr>
			        </c:if> <c:if test="${fn:length(workflowFavors)<4}"> 
			        <tr> 
			          <td >&nbsp;  
			            </td>
			        </tr>
			        </c:if> <c:if test="${fn:length(workflowFavors)<5}"> 
			        <tr> 
			          <td >&nbsp;  
			            </td>
			        </tr>
			        </c:if> 
					</table>
					<table width="100%" height="17" style="margin-bottom:2px">
				        <tr>
				          <td>&nbsp;</td>
				          <td width="30" class="tbl_more_ico_td"><a href="#" class="link_portlet" onClick='mainJump("/modules/workflow/workflowFile.do?method=draft&fromType=0&fromId=0","<%=Constants.USER_THEME_FRAME %>")'
			          	title="${workflow_portal1_label4}"><fmt:message key="common_more" /></a></td>
				        </tr>
				     </table>
			     </td>
			  </tr>
			</table>
		</td>
	</tr>
</table>       
</ff:boxportlet>        

